package cn.hahah.module.blog.controller.admin.article.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.hahah.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.hahah.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 博客系统文章分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ArticlePageReqVO extends PageParam {

    @Schema(description = "用户编号", example = "17926")
    private Long userId;

    @Schema(description = "类型编号", example = "2759")
    private Long typeId;

    @Schema(description = "文章标题")
    private String title;

    @Schema(description = "文章图片")
    private String picture;

    @Schema(description = "文章正文")
    private String content;

    @Schema(description = "文章描述", example = "你说的对")
    private String description;

    @Schema(description = "浏览次数")
    private Integer views;

    @Schema(description = "是否公开")
    private Boolean isPublished;

    @Schema(description = "是否推荐")
    private Boolean isRecommend;

    @Schema(description = "是否赞赏")
    private Boolean isAppreciation;

    @Schema(description = "可否评论")
    private Boolean isCommentEnabled;

    @Schema(description = "是否置顶")
    private Boolean isTop;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}